#pragma once


#include <stdlib.h>
#include <stdint.h>
#ifdef __cplusplus
extern "C" {
#endif


 typedef struct {
     int64_t ecd;
     int64_t last_ecd;
     float speed;
}Encoder;


extern Encoder Motor_1;

    void Encoder_Init (void);
    int16_t Encoder_Get(void);
#ifdef __cplusplus
}
#endif
